package com.personnel.controller;

import com.personnel.service.StaffService;
import com.personnel.sms.SendSms;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Author: YuePeng
 * @Date: 2022/4/2 10:39
 * @Version: 1.0
 */
@RestController
public class SMSController {

    @Resource
    private StaffService staffService;

    @GetMapping("/sendSMS")
    public Map<String, Object> sendCode(@RequestParam String phone){
        return staffService.sendCode(phone);
    }
}
